package com.hspedu.poly_.polyparameter;

public class Employee {
    private String name;
    private double salary;//salary为月工资

    //计算年工资的方法
    public String getAnnual(){
        return name+"的年工资："+this.salary*12;
    }

    public Employee(String name, double salary) {
        this.name = name;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }


}
